| Conditions | 3 |
| Total Lines | 20 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | // import './index.scss' |
||
| 28 | |||
| 29 | componentDidMount() { |
||
| 30 | // eslint-disable-next-line |
||
| 31 | const foundation = require("foundation-sites") |
||
| 32 | $(document).foundation() |
||
| 33 | |||
| 34 | $(`.main-nav a`).on(`click`, function () { |
||
| 35 | if ($(this).attr(`href`).indexOf(window.location.pathname) === 0 && window.location.hash) { |
||
| 36 | const url = $(this).attr(`href`) |
||
| 37 | const hash = url.substring(url.indexOf(`#`)) |
||
| 38 | |||
| 39 | $(`.team-sub_navigation a[href="${hash}"]`).trigger(`click`, [true]) |
||
| 40 | } |
||
| 41 | }) |
||
| 42 | |||
| 43 | if (window.location.hash) { |
||
| 44 | $(`.team-sub_navigation a[href="${window.location.hash}"]`).trigger(`click`, [true]) |
||
| 45 | } |
||
| 46 | $(`.tabs`).on(`change.zf.tabs`, function () { |
||
| 47 | forceCheck() |
||
| 48 | }) |
||
| 53 |